from django.shortcuts import render
from rest_framework.viewsets import generics
from .serializers import CategorySerializers, LabelSerializers
from .models import Category, Label


# Create your views here.


class CategoryListViewSet(generics.ListAPIView):
    serializer_class = CategorySerializers
    queryset = Category.objects.all()


class LabelListViewSet(generics.ListAPIView):
    serializer_class = LabelSerializers
    queryset = Label.objects.all()
